class UrlMappings {

	static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }

        "/"(controller:"home", action:"index")
        "500"(view:'/errorPage/error500')
		"404"(view:'/errorPage/error404')
		
		"/sh/$folderUrl?"(controller:"Folder", action:"shareFolder")
		"/s/$fileUrl?"(controller:"File", action:"shareFile")
		"/download/f/$fileUrl?"(controller:"File", action:"downloadFile")
		"/download/fd/$folderUrl?"(controller:"Folder", action:"downloadFolder")
	}
}
